package com.velpro.x1.user.controller;

import com.velpro.x1.user.entity.SysUser;
import com.velpro.x1.user.service.SysUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/sys/user")
public class SysUserController {

    @Autowired
    SysUserService sysUserService;

    @GetMapping("/getUserInfo")
    public SysUser getUserInfo(){
        SysUser user = sysUserService.getById("1277137734524300032");
        return user;
    }

}
